#coding: UTF-8
import requests



def html(url):

    r = requests.get(url)
    r.encode("utf-8","ignore")
a = input("file:")
sss = "a"
aaa = input("url:")
html (aaa)

if sss == "404":
    print ("404error")
    input()
    exit()

if sss == "505":
    print ("505error")
    input()
    exit()
with open (a,"wb") as www:
    www.write(s)